import type { AppRouteModule } from '@/router/types';
import { LAYOUT } from '@/router/constant';
import { t } from '@/hooks/web/useI18n';

const banner: AppRouteModule = {
  path: '/banner',
  name: 'Banner',
  component: LAYOUT,
  redirect: '/banner/index',
  meta: {
    hideChildrenInMenu: true,
    icon: 'ph:flag-banner-fill',
    title: t('banner管理'),
    orderNo: 5,
  },
  children: [
    {
      path: 'index',
      name: 'bannerMgr',
      component: () => import('@/views/banner/index.vue'),
      meta: {
        title: t('Banner管理'),
        icon: 'simple-icons:aboutdotme',
        hideMenu: true,
      },
    },
  ],
};
export default banner;
